Skip to content

fix(spdmlib/session): clear backup flags and transcript hashes on reset#371

Merged
jyao1 merged 1 commit intoccc-spdm-tools:mainfrom
sgrams:fix/clear_backup_flags_and_tr_hash_on_reset
Apr 28, 2026
Merged

fix(spdmlib/session): clear backup flags and transcript hashes on reset#371
jyao1 merged 1 commit intoccc-spdm-tools:mainfrom
sgrams:fix/clear_backup_flags_and_tr_hash_on_reset

Conversation

@sgrams
Copy link
Copy Markdown
Contributor

@sgrams sgrams commented Apr 27, 2026

Extend SpdmSession::set_default() to also reset
responder_backup_valid, requester_backup_valid, th1, and th2. Without these resets, a session struct that is recycled after teardown or reset retains values from the previous connection.
An attacker could leverage this leakage to manipulate key updates or poison transcript hashes in future SPDM sessions.

Extend `SpdmSession::set_default()` to also reset
`responder_backup_valid`, `requester_backup_valid`, `th1`, and `th2`.
Without these resets, a session struct that is recycled after teardown
or reset retains values from the previous connection. An attacker
could leverage this leakage to manipulate key updates or poison
transcript hashes in future SPDM sessions.

Signed-off-by: Stanislaw Grams <stanislaw.grams@intel.com>
@sgrams sgrams requested review from jyao1, sameo and taprinz as code owners April 27, 2026 13:00
@jyao1 jyao1 merged commit 31bfc29 into ccc-spdm-tools:main Apr 28, 2026
56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants